package com.tyj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.common.utils.PageUtils;
import com.tyj.gulimall.product.entity.SpuInfoEntity;
import com.tyj.gulimall.product.vo.SpuSaveVo;

import java.util.List;
import java.util.Map;

/**
 * spu信息
 *
 * @author tanyoujie
 * @email 983629093@qq.com
 * @date 2021-02-09 19:09:40
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    /**
     * 按照条件进行查询
     * @param params  传入的条件
     * @return  返回sku商品信息
     */
    PageUtils queryByCondition(Map<String, Object> params);

    /**
     * spu上架
     * @param spuId
     */
    void spuUp(Long spuId);

    SpuInfoEntity getSpuBySkuId(Long skuId);
}

